﻿namespace TestTool.Proxies.Onvif
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.ServiceModel;
    using System.ServiceModel.Channels;

    [GeneratedCode("System.ServiceModel", "3.0.0.0"), DebuggerStepThrough]
    public class ReplayPortClient : ClientBase<ReplayPort>, ReplayPort
    {
        public ReplayPortClient()
        {
        }

        public ReplayPortClient(string endpointConfigurationName) : base(endpointConfigurationName)
        {
        }

        public ReplayPortClient(Binding binding, EndpointAddress remoteAddress) : base(binding, remoteAddress)
        {
        }

        public ReplayPortClient(string endpointConfigurationName, EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress)
        {
        }

        public ReplayPortClient(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress)
        {
        }

        public ReplayConfiguration GetReplayConfiguration()
        {
            return base.Channel.GetReplayConfiguration();
        }

        public string GetReplayUri(StreamSetup StreamSetup, string RecordingToken)
        {
            GetReplayUriRequest request = new GetReplayUriRequest {
                StreamSetup = StreamSetup,
                RecordingToken = RecordingToken
            };
            return ((ReplayPort) this).GetReplayUri(request).Uri;
        }

        public ReplayServiceCapabilities GetServiceCapabilities()
        {
            return base.Channel.GetServiceCapabilities();
        }

        public void SetReplayConfiguration(ReplayConfiguration Configuration)
        {
            base.Channel.SetReplayConfiguration(Configuration);
        }

        [EditorBrowsable(EditorBrowsableState.Advanced)]
        GetReplayUriResponse ReplayPort.GetReplayUri(GetReplayUriRequest request)
        {
            return base.Channel.GetReplayUri(request);
        }
    }
}

